package com.group10.controller;

import com.group10.entity.Result;
import com.group10.service.impl.AdminServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin")
public class AdminController {

    @Autowired
    private AdminServiceImpl adminService;

    @PostMapping("/adminLogin")
    public Result<?> adminLogin(String id,String password){
        return adminService.adminLogin(id,password);
    }
}
